3.10 \(\int \frac {\sin (2 x)}{1+\cos (2 x)} \, dx\)

Optimal. Leaf size=5 \[ -\log (\cos (x)) \]

[Out]

-ln(cos(x))

________________________________________________________________________________________

Rubi [B]  time = 0.02, antiderivative size = 11, normalized size of antiderivative = 2.20, number of steps used = 2, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2667, 31} \[ -\frac {1}{2} \log (\cos (2 x)+1) \]

Antiderivative was successfully verified.

[In]

Int[Sin[2*x]/(1 + Cos[2*x]),x]

[Out]

-Log[1 + Cos[2*x]]/2

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 2667

Int[cos[(e_.) + (f_.)*(x_)]^(p_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.), x_Symbol] :> Dist[1/(b^p*f), S
ubst[Int[(a + x)^(m + (p - 1)/2)*(a - x)^((p - 1)/2), x], x, b*Sin[e + f*x]], x] /; FreeQ[{a, b, e, f, m}, x]
&& IntegerQ[(p - 1)/2] && EqQ[a^2 - b^2, 0] && (GeQ[p, -1] ||  !IntegerQ[m + 1/2])

Rubi steps

\begin {align*} \int \frac {\sin (2 x)}{1+\cos (2 x)} \, dx &=-\left (\frac {1}{2} \operatorname {Subst}\left (\int \frac {1}{1+x} \, dx,x,\cos (2 x)\right )\right )\\ &=-\frac {1}{2} \log (1+\cos (2 x))\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 5, normalized size = 1.00 \[ -\log (\cos (x)) \]

Antiderivative was successfully verified.

[In]

Integrate[Sin[2*x]/(1 + Cos[2*x]),x]

[Out]

-Log[Cos[x]]

________________________________________________________________________________________

fricas [B]  time = 0.88, size = 11, normalized size = 2.20 \[ -\frac {1}{2} \, \log \left (\frac {1}{2} \, \cos \left (2 \, x\right ) + \frac {1}{2}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(2*x)/(1+cos(2*x)),x, algorithm="fricas")

[Out]

-1/2*log(1/2*cos(2*x) + 1/2)

________________________________________________________________________________________

giac [A]  time = 0.30, size = 9, normalized size = 1.80 \[ -\frac {1}{2} \, \log \left (\cos \left (2 \, x\right ) + 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(2*x)/(1+cos(2*x)),x, algorithm="giac")

[Out]

-1/2*log(cos(2*x) + 1)

________________________________________________________________________________________

maple [A]  time = 0.02, size = 10, normalized size = 2.00 \[ -\frac {\ln \left (1+\cos \left (2 x \right )\right )}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(2*x)/(1+cos(2*x)),x)

[Out]

-1/2*ln(1+cos(2*x))

________________________________________________________________________________________

maxima [A]  time = 0.47, size = 9, normalized size = 1.80 \[ -\frac {1}{2} \, \log \left (\cos \left (2 \, x\right ) + 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(2*x)/(1+cos(2*x)),x, algorithm="maxima")

[Out]

-1/2*log(cos(2*x) + 1)

________________________________________________________________________________________

mupad [B]  time = 0.26, size = 7, normalized size = 1.40 \[ -\frac {\ln \left ({\cos \relax (x)}^2\right )}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(2*x)/(cos(2*x) + 1),x)

[Out]

-log(cos(x)^2)/2

________________________________________________________________________________________

sympy [A]  time = 0.11, size = 10, normalized size = 2.00 \[ - \frac {\log {\left (\cos {\left (2 x \right )} + 1 \right )}}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(2*x)/(1+cos(2*x)),x)

[Out]

-log(cos(2*x) + 1)/2

________________________________________________________________________________________